﻿Public Class _exit
    Inherits System.Web.UI.Page

    Private Sub _exit_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        Session.Abandon()
        Dim cookie1 As HttpCookie = New HttpCookie(FormsAuthentication.FormsCookieName, "")
        Response.Cookies.Add(cookie1)
        Dim cookie2 As HttpCookie = New HttpCookie("ASP.NET_SessionId", "")
        cookie2.Expires = DateTime.Now.AddYears(-1)
        Response.Cookies.Add(cookie2)
        Response.Cache.SetCacheability(HttpCacheability.NoCache)

    End Sub

   

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

End Class